package com.logistics.modules.financialManagement.dao;
import org.apache.ibatis.annotations.Param;

import com.logistics.modules.financialManagement.entity.FreightEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 * 
 * @author HURRICANE
 * @email HURRICANE@nb.com
 * @date 2022-05-14 10:50:28
 */
@Mapper
public interface FreightDao extends BaseMapper<FreightEntity> {

    FreightEntity selectOneById(@Param("id") Integer id);

    int updateVehicleIdById(@Param("vehicleId") Integer vehicleId, @Param("id") Integer id);

    int updateSelective(FreightEntity freightEntity);

    int updateAccruedChargeByMovePlanId(@Param("accruedCharge") Double accruedCharge, @Param("movePlanId") Integer movePlanId);

    int updateOutOfPockeyExpensesByMovePlanId(@Param("outOfPockeyExpenses") Double outOfPockeyExpenses, @Param("movePlanId") Integer movePlanId);
}
